<?php
// example.php
require 'YahooTwBid.php';

function ask_yahoo_catid () {
  $fp       = fopen('php://stdin', 'r');
  $content  = fread($fp, 100);
  $content  = trim($content);
  return $content;
}

try {
  
  $parser = new YahooTwBid;
} catch (YahooException $e) {
  echo '['.date('Y-m-d H:i:s').']'.$e->getCode().':'.$e->getMessage()."\n";
  exit;
}
?>
